package com.legendshop.openportal.sdk.model.request;


import com.legendshop.openportal.sdk.model.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

import static com.legendshop.openportal.sdk.model.constants.ApiPathConstants.ORDER_TRACK;

/**
 * 查询配送信息
 *
 * @author LoengDakChu
 */
@Data
@ApiModel("查询配送信息请求")
public class OrderTrackRequest extends BaseRequest {

	private static final long serialVersionUID = -5164150435770113123L;

	/**
	 * 非空：是
	 * 订单号
	 */
	@ApiModelProperty("订单号")
	@NotBlank(message = "订单号不能为空")
	private String subNumber;

	@Override
	@ApiModelProperty(hidden = true)
	public String getApiPath() {
		return ORDER_TRACK;
	}
}
